package com.ylx.code.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ylx.code.mapper.MarkScanRecordMapper;
import com.ylx.code.model.MarkScanRecord;
import com.ylx.code.service.MarkScanRecordService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商户记录表接口实现
 *
 * @author yanglixin
 * date    2023-10-17 16:36:07
 */
@Service
public class MarkScanRecordServiceImpl extends ServiceImpl<MarkScanRecordMapper, MarkScanRecord> implements MarkScanRecordService {

    @Override
    public List<MarkScanRecord> getByMarkId(Long markId) {
        LambdaQueryWrapper<MarkScanRecord> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(MarkScanRecord::getMarkId,markId);
        return this.list(wrapper);
    }
}